package com.agent.vpsserver.modules.server.request;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 服务器信息(ServerInfo)表实体类
 *
 * @author guochao
 * @since 2024-03-12 23:50:13
 */
@Data
public class ServerInfoSaveRequest {
    private Long id;

    /**
     * ip
     */
    @NotBlank
    @ApiModelProperty(value = "ip", required = true)
    private String host;

    /**
     * 端口
     */
    @NotNull
    @ApiModelProperty(value = "端口", required = true)
    private Integer port;

    /**
     * 用户名
     */
    @NotBlank
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    /**
     * 密码
     */
    @NotBlank
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    /**
     * 服务器状态 1、正常 2、禁用
     */
    @ApiModelProperty(value = "服务器状态 1、正常 2、禁用")
    private Integer status;
}
